/* AI设置页面专用样式 */
.ai-settings-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  color: #333;
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.ai-settings-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.ai-settings-header h1 {
  font-size: 2.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1rem;
  background: linear-gradient(120deg, #2c3e50, #4ca1af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
  animation: slideDown 0.7s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

.ai-settings-header h1::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #4ca1af, #2c3e50);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  animation: expandWidth 1s ease-out;
}

@keyframes expandWidth {
  from { width: 0; }
  to { width: 60px; }
}

.ai-settings-description {
  font-size: 1.1rem;
  color: #7f8c8d;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  animation: fadeIn 0.8s ease-out 0.2s both;
}

.ai-settings-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .ai-settings-content {
    grid-template-columns: 1fr;
  }
}

.ai-settings-box {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  animation: slideUp 0.5s ease-out;
  transform-origin: center bottom;
}

.ai-settings-box:first-child {
  animation-delay: 0.1s;
}

.ai-settings-box:last-child {
  animation-delay: 0.3s;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.ai-settings-box:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.ai-settings-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 5px;
  background: linear-gradient(90deg, #3498db, #2ecc71);
  transition: width 0.5s ease;
}

.ai-settings-box:hover::before {
  width: 100%;
}

.ai-settings-box h2 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  position: relative;
  padding-bottom: 10px;
}

.ai-settings-box h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #3498db, #2ecc71);
  transition: width 0.3s ease;
}

.ai-settings-box:hover h2::after {
  width: 80px;
}

.ai-settings-box h2 svg {
  margin-right: 10px;
  color: #3498db;
  transition: transform 0.3s ease;
}

.ai-settings-box:hover h2 svg {
  transform: rotate(15deg);
}

.system-settings .ai-setting-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.system-settings .ai-setting-item:hover {
  background-color: #f9f9f9;
  padding-left: 8px;
  border-radius: 5px;
}

.system-settings .ai-setting-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.ai-setting-label {
  font-weight: 500;
  color: #34495e;
  transition: color 0.3s ease;
}

.ai-setting-item:hover .ai-setting-label {
  color: #3498db;
}

.ai-setting-value {
  padding: 0.3rem 0.8rem;
  background: #f8f9fa;
  border-radius: 4px;
  color: #2980b9;
  font-family: 'Monaco', monospace;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-setting-item:hover .ai-setting-value {
  background: #ecf0f1;
  border-color: #bdc3c7;
  transform: scale(1.02);
}

.ai-settings-note {
  background: #f8f9fa;
  border-left: 4px solid #3498db;
  padding: 1rem;
  margin-bottom: 1.5rem;
  color: #7f8c8d;
  font-size: 0.95rem;
  border-radius: 0 4px 4px 0;
  transition: all 0.3s ease;
}

.ai-settings-box:hover .ai-settings-note {
  background: #ecf0f1;
  border-left-width: 6px;
}

.ai-form-group {
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.ai-form-group:hover {
  transform: translateX(5px);
}

.ai-form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #34495e;
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.ai-form-group:hover label {
  color: #3498db;
}

.ai-form-group label svg {
  margin-right: 8px;
  color: #3498db;
  transition: transform 0.3s ease;
}

.ai-form-group:hover label svg {
  transform: scale(1.2);
}

.ai-form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid #eaeaea;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.3s;
  color: #2c3e50;
  background: #fff;
}

.ai-form-control:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
  outline: none;
  transform: translateY(-2px);
}

.ai-form-control::placeholder {
  color: #bdc3c7;
}

.ai-form-hint {
  margin-top: 0.5rem;
  color: #95a5a6;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.ai-form-group:hover .ai-form-hint {
  color: #7f8c8d;
}

/* 验证提示样式 */
.ai-settings-validation {
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  animation: fadeIn 0.5s ease-in-out;
}

.ai-validation-error {
  background-color: rgba(231, 76, 60, 0.1);
  border-left: 4px solid #e74c3c;
  color: #c0392b;
}

.ai-validation-success {
  background-color: rgba(46, 204, 113, 0.1);
  border-left: 4px solid #2ecc71;
  color: #27ae60;
}

.ai-settings-validation svg {
  font-size: 1.1rem;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.ai-password-input-container {
  position: relative;
}

.ai-show-password-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #7f8c8d;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-show-password-btn:hover {
  background: #f0f0f0;
  color: #34495e;
  transform: translateY(-50%) scale(1.1);
}

.ai-settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  animation: fadeIn 1s ease-out 0.5s both;
}

.ai-btn {
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.ai-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.ai-btn:active::before {
  width: 300px;
  height: 300px;
}

.ai-btn-secondary {
  background: #ecf0f1;
  color: #7f8c8d;
}

.ai-btn-secondary:hover {
  background: #dfe6e9;
  color: #2c3e50;
  transform: translateY(-2px);
}

.ai-btn-secondary svg {
  margin-right: 5px;
  transition: transform 0.3s;
}

.ai-btn-secondary:hover svg {
  transform: rotate(180deg);
}

.ai-btn-primary {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.ai-btn-primary:hover {
  background: linear-gradient(135deg, #2980b9, #2574a9);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(52, 152, 219, 0.4);
}

.ai-btn-primary svg {
  margin-right: 5px;
  transition: transform 0.3s;
}

.ai-btn-primary:hover svg {
  transform: translateY(-2px);
}

.ai-btn-primary:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 加载状态样式 */
.ai-loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.ai-loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 添加一些装饰元素 */
.ai-decoration-circle {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(46, 204, 113, 0.05));
  z-index: -1;
  animation: floating 10s ease-in-out infinite alternate;
}

@keyframes floating {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-15px) scale(1.05);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.ai-decoration-circle.top-right {
  top: -80px;
  right: -80px;
  animation-delay: 1s;
}

.ai-decoration-circle.bottom-left {
  bottom: -80px;
  left: -80px;
  animation-delay: 0s;
}

/* 响应式调整 */
@media (max-width: 992px) {
  .ai-settings-header h1 {
    font-size: 2rem;
  }
  
  .ai-settings-description {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .ai-settings-container {
    padding: 1rem;
  }
  
  .ai-settings-header h1 {
    font-size: 1.8rem;
  }
  
  .ai-settings-content {
    gap: 1.5rem;
  }
  
  .ai-settings-box {
    padding: 1.5rem;
  }
  
  .ai-settings-actions {
    flex-direction: column;
  }
  
  .ai-btn {
    width: 100%;
  }
}

/* 添加暗色主题支持 */
@media (prefers-color-scheme: dark) {
  .ai-settings-container {
    color: #f0f0f0;
  }
  
  .ai-settings-box {
    background: #2c3e50;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }
  
  .ai-settings-box h2 {
    color: #ecf0f1;
  }
  
  .ai-setting-label {
    color: #bdc3c7;
  }
  
  .ai-setting-value {
    background: #34495e;
    color: #3498db;
  }
  
  .ai-settings-note {
    background: #34495e;
    color: #bdc3c7;
  }
  
  .ai-form-group label {
    color: #bdc3c7;
  }
  
  .ai-form-control {
    background: #34495e;
    color: #ecf0f1;
    border-color: #2c3e50;
  }
  
  .ai-form-hint {
    color: #95a5a6;
  }
  
  .ai-btn-secondary {
    background: #34495e;
    color: #bdc3c7;
  }
  
  .ai-btn-secondary:hover {
    background: #2c3e50;
    color: #ecf0f1;
  }
} 